/**
 * @param {HTMLElement} el
 * @param {string} styleName
 */
export function removeElementStyle(el: HTMLElement, styleName: string): void {
  if (!el || !styleName) return
  try {
    if (styleName === 'length' || styleName === 'parentRule') {
      return
    }
    el.style.removeProperty(styleName)
  } catch (e) {
    console.error('Error removing element style:', e)
  }
} 